<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%
   request.setAttribute("contextPath", request.getContextPath());
%>
<html>
<head>
<title>showSingleOrderDetail</title>
</head>
<body>
  <table width="80%" border="1" align="center">
            <div align="center">订单信息</div>
    <tr>
        <td>订单单号</td>
        <td>订单状态</td>
        <td>订单时间</td>
        
    </tr>
   
    <tr>
        <td>${u.referenceNumber}</td>
        <c:if test="${singleOrder.orderStatus==1}"><td>待付款</td></c:if>
        <c:if test="${singleOrder.orderStatus==2}"><td>已付款</td></c:if>
        <c:if test="${singleOrder.orderStatus==3}"><td>配货中</td></c:if>
        <c:if test="${singleOrder.orderStatus==4}"><td>待发货</td></c:if>
        <c:if test="${singleOrder.orderStatus==5}"><td>已发货</td></c:if>
        <c:if test="${singleOrder.orderStatus==6}"><td>已收货</td></c:if>
        <c:if test="${singleOrder.orderStatus==7}"><td>已取消</td></c:if>
        <td>${singleOrder.orderTime}</td> 
   </tr>
  
   </table>
   
   <br>
  <table width="80%" border="1" align="center">
     <div align="center" >订单商品</div>
    <tr>
        <td>图书ID</td>
        <td>图书数量</td>
        <td>图书名字</td>
        <td>图书总价</td>
    </tr>
   
    <tr>
        <td>${singleOrder.bookId}</td>
        <td>${singleOrder.quantity}</td>
        <td>${singleOrder.bookName}</td>
        <td>${singleOrder.totalPrice}</td>
    </tr>
   
  </table>
  
  
  <br>
  <table width="80%" border="1" align="center">
     <div align="center" >配送地址</div>      
     <tr>
	     <td>省</td>
	     <td>市</td>
	     <td>区</td>
	     <td>街道</td>
     </tr>
    
     <tr>
	     <td>${singleOrder.province}</td>
	     <td>${singleOrder.city}</td>
	     <td>${singleOrder.suburb}</td>
	     <td>${singleOrder.road}</td>
    </tr>
    
  </table>
  <br>
  <br>
  
    <a href="${contextPath}/profile/index"><div align="center" style="color:#F00">返回首页</div></a>
</body>
</html>